package com.epam.cdp.jpa.model;

import javax.persistence.Column;
import javax.persistence.Entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity
public class BookReservationRequest extends BaseEntity {

    private static final long serialVersionUID = 1L;
    
    @Column(nullable = false)
    private User reader;
    
    @Column(nullable = false)
    private Book book;
    
    private User librarian;
    
    @Column(nullable = false)
    private BookReservationRequestStatus status;
    
}
